<?php
class sfTestEmailForm extends BaseForm{
    public function configure(){
        $this->setWidgets(array("to"    => new sfWidgetFormInputText(array("label"=>"Destinataire")),
                                "body"  => new sfWidgetFormTextarea(array("label"=>"Corps de l'email")),
                                "title" => new sfWidgetFormInputText(array("label"=>"Titre de l'email"))));
        $this->setValidators(array("to" => new sfValidatorEmail(array("required" => true)),
                                   "body"=> new sfValidatorString(array("required" => true)),
                                   "title"=> new sfValidatorString(array("required"=> true))
            
        ));
        $this->widgetSchema->setNameFormat("ktd_email_test[%s]");
    }
}
?>
